package com.example.service;


import com.example.vo.OrderReportVO;
import com.example.vo.TurnoverReportVO;
import com.example.vo.UserReportVO;
import jakarta.servlet.http.HttpServletResponse;

import java.time.LocalDate;
import java.time.LocalDateTime;

public interface ReportService {

    /**
     * 统计营业额
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计
     *
     * @param begin
     * @param end
     * @return
     */
    UserReportVO userStatistics(LocalDate begin, LocalDate end);


    /**
     * 订单统计
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO orderStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量前10
     * @param begin
     * @param end
     * @return
     */
    Object getSalesTop10(LocalDate begin, LocalDate end);

    /**
     * 导出数据表
     * @param response
     */
    void exportBusinessData(HttpServletResponse response);
}
